<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>添加宿舍信息</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    body {
      background: url('https://www.fjpit.edu.cn/_upload/article/images/85/0a/ace6605245f7aa03c4f70daef565/4859390e-bc87-42e1-896f-44386bc14740.png') no-repeat center center fixed;
      background-size: cover;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .main {
      width: 600px;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      border-radius: 20px;
      padding: 20px;
    }
    .header, .footer {
      background: #0073e6;
      color: white;
      padding: 10px 20px;
      border-radius: 10px 10px 0 0;
      text-align: center;
    }
    .header a, .footer a {
      color: white;
      text-decoration: none;
      margin: 0 10px;
      font-weight: bold;
    }
    .content {
      padding: 20px;
      text-align: center;
    }
    .content h2 {
      margin-top: 0;
      color: #0073e6;
      font-size: 1.8em;
    }
    .content form {
      flex-direction: column;
      text-align: center;
    }
    .content form input[type="text"],
    .content form input[type="radio"] {
      margin: 10px 0;
      padding: 10px;
      width: 300px;
      border: 1px solid #0073e6;
      border-radius: 5px;
      font-size: 1em;
    }
    .content form label {
      font-size: 1em;
      color: #0073e6;
    }
    .content form button {
      margin-top: 20px;
      background: #0073e6;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
      font-size: 1em;
    }
    .content form button:hover {
      background: #005bb5;
    }
    .footer {
      background: #0073e6;
      color: white;
      border-radius: 0 0 20px 20px;
      text-align: center;
    }

    .footer img{
      width: 180px;
      height: 30px;

    }
  </style>
</head>
<body>
<div class="main">
  <div class="header">
    <a href="empList">宿舍信息</a>
    <a href="main.jsp">返回系统</a>
  </div>
  <div class="content">
    <h2>添加宿舍信息</h2>
    <form action="saveEmp" method="post">
      <div>
        名称：<input name="empName" type="text" /><br />
      </div>
      <div>
        是否空置：<label><input name="empGender" type="radio" value="是">是</label>
        <label><input  type="radio" name="empGender" value="否">否</label><br />
      </div>
      <div>
        宿舍类型：<input name="empDept" type="text" /><br />
      </div>
      <div>
        费用：<input name="empSalary" type="text" /><br>
      </div>
      <div>
        <button type="submit" >添加</button>
        <button type="reset">重置</button>
      </div>
    </form>
  </div>

</div>
</body>
</html>
